<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%> 
<%@ taglib prefix="map" uri="/map" %>  
<%
	String basepath = request.getContextPath();
%>

<script type="text/javascript">

$(function(){
	
	var config = ${map:json(config)};
	
	loader.load(basepath+"/"+config["module.namespace"]+"/"+"organ.js",function(){
		
		var module = new organ();
		
		app.module=module;
		
		app.module.init(config);

	});
	
});

</script>
<input type="hidden" name="ID" id="ID" value="">
<!-- 查询区 -->
<div class="core-panel" fit="false" style="padding:2px;">
    <form class="core-form c3" id="listForm" type="query">
    	<table>
			<tr>
			  <td>机构编号：</td><td><input name="ORGAN_CODE" id="ORGAN_CODE"></td>
			  <td>机构类型：</td><td>
				  <select name="ORGAN_TYPE" onchange="app.module.query()">
				  <option value="">--全部--</option>
				  	<c:forEach items="${organTypes }" var="organType">
				  		<option value="${organType.CODE_KEY}">${organType.CODE_VALUE}</option>
				  	</c:forEach>
				  </select>
			  </td>
			  <td>机构名称：</td><td><input name="ORGAN_NAME" ></td>
			  <td><a class="core-button" icon="icon-query" id="query" href="javascript:app.module.query();">查询</a></td>
			</tr>
		</table>
    </form>
</div>	

<div class="blank5"></div>

<!-- 列表按钮区 -->
<jsp:include page="/commons/commons_module_rights_list.jsp"></jsp:include>

<div class="blank5"></div>

<!-- 列表区 -->
<div style="width:320px;height:auto;" class="fl">
	<div class="core-panel" fit="false" title="机构列表">
		<ul class="core-tree" id="list" url="<%=basepath %>/${config['module.namespace']}/list"  checkbox="${map:isNotEmpty(module_rights)?'true':'false' }" nameCol="ORGAN_NAME" idCol="ORGAN_NO" pidCol="ORGAN_NO_PRE" selectNode="app.module.selectNode" clickList="app.module.clickList" listLoaded="app.module.listLoaded" listParams="app.module.listParams"></ul>
	</div>
</div>

<!-- 表单区 -->
<div style="width:675px;height:auto;" class="fr">

	<div class="core-panel" fit="false" title="${module.MODULE_NAME}" style="padding:10px;">
	    
		<form id="itemForm" class="core-form" col="4" type="item">
		 	<input type="hidden" name="${config['module.idCol']}" /> 
		 	<input type="hidden" name="ORGAN_NO_PRE" />
			<table>
				<tr>
				  <td>机构编号：</td>
				  <td><input name="ORGAN_CODE" class="disabled check"  req="false" readonly></td>
				  <td>机构名称：</td>
				  <td><input name="ORGAN_NAME" class="disabled check"  req="false" readonly></td>
				</tr>
				<tr>
				  <td>机构类型：</td>
				  <td>
				  	<select name="ORGAN_TYPE"  req="false" disabled>
					  <option value="">--请选择--</option>
					  	<c:forEach items="${organTypes }" var="organType">
					  		<option value="${organType.CODE_KEY}">${organType.CODE_VALUE}</option>
					  	</c:forEach>
					  </select>
				  </td>
				  <td>机构负责人：</td>
				  <td><input name="ORGAN_MANAGER" class="disabled"  req="false" readonly></td>
				</tr>
				<tr>
				  <td>联系电话：</td>
				  <td><input name="ORGAN_MANAGER_PHONE" class="disabled"  req="false" readonly></td>
				  <td >联系邮箱：</td><td>
				  <input name="ORGAN_MANAGER_EMAIL" class="disabled"  req="false" readonly></td>
				</tr>
				<tr>
				  <td>机构简介：</td>
				  <td colspan="3"><textarea name="ORGAN_REMARK"  class="disabled" rows="5" readonly style="width:99%;"></textarea></td>
				</tr>
				<jsp:include page="/commons/commons_module_rights_item.jsp"></jsp:include>
			</table>
			<jsp:include page="/commons/commons_module_item_info_simple.jsp"></jsp:include>
		</form>
	</div>
</div>

<div class="clear"></div>